﻿$(document).ready(function () {

    $("#paginador").paginate({
        count: Math.ceil($("#totalReg").val() / 3),
        start: $("#pagina").val(),
        display: 3,
        border: false,
        text_color: "#888",
        text_hover_color:"black",
        background_color: "#EEE",
        background_hover_color: "#CFCFCF",
        first_text: "Primero",
        last_text:  "Ultimo",       
        fillEmptyRows: true,
        onChange: function (e) {
            $("#pagina").val(e);
            console.log(e);
            $("form:first").submit();
        }

    });
});